package org.winexpress

class Transaction {

    int id
    int customerId
    double paidAmount
    
    static hasOne = [paymentType:PaymentType]
    
    static constraints = {
        id(blank:false, unique:true)
        paymentType(blank:false)
        paidAmount(blank:false)
    }
    
}
